package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter@Setter
public class StockIncomeBill extends BaseDomain{

    public static final Integer NORMAL = 1;
    public static final Integer AUDIT = 2;

    private String sn;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;
    private Integer status = NORMAL;
    private BigDecimal totalAmount;
    private BigDecimal totalNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date auditTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private Employee inputUser;
    private Employee auditor;
    private Depot depot;//仓库

    //关联明细
    private List<StockIncomeBillItem> items = new ArrayList<>();
}
